package com.bdqn.t320.ch04;


import com.bdqn.t320.ch04.entity.SysRole;
import com.bdqn.t320.ch04.service.ISysRoleService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;

@RunWith(SpringRunner.class)
@SpringBootTest
public class RoleTester {

    @Resource
    ISysRoleService iSysRoleService;

    @Test
    public void getRoleByIdTest() {
        SysRole byId = iSysRoleService.getById(1L);
        System.out.println(byId.getRoleName());
    }
}
